Name | Description | |
---|---|---|
SparseArray<T> Constructor | Initializes a new instance of the SparseArray class that is empty and has the specified initial length. |
The following tables list the members exposed by SparseArray<T>.
Name | Description | |
---|---|---|
SparseArray<T> Constructor | Initializes a new instance of the SparseArray class that is empty and has the specified initial length. |
Name | Description | |
---|---|---|
DataLength | Returns the length of the non-null data currently in the SparseArray<T>. | |
Item | Gets or sets the element at the specified index. | |
Length | Gets a 32-bit integer that represents the total number of elements in SparseArray. |
Name | Description | |
---|---|---|
CheckIfEmpty | ||
Clear | Overloaded. Removes all elements from the SparseArray at the specified range. | |
Clone | Creates a new object that is a copy of the current instance. | |
Contains | Determines whether the SparseArray contains a specific value. | |
Copy | Copies a range of elements from an SparseArray starting at the specified source index and pastes them to another SparseArray starting at the specified target index. The length and the indexes are specified as 32-bit integers. | |
CopyTo | Overloaded. Creates a new object that is a copy of the current instance. | |
Equals | Overloaded. Indicates whether the current object is equal to another object of the same type. | |
Fill | Fills a range of array with a specified value. | |
IndexOf | Determines the index of a specific item in the SparseArray. | |
InsertRange | Inserts the specified number of new null items into the SparseArray at the specified index. | |
Move | Moves a range of elements from an SparseArray starting at the specified source index and pastes them to another SparseArray starting at the specified target index. Elements of old range will be clear. The length and the indexes are specified as 32-bit integers. | |
NextNonEmptyIndex | Overloaded. | |
NextNonEmptyQuickAccessKey | ||
PreviousNonEmptyIndex | Overloaded. | |
RemoveRange | Removes a range of items from the SparseArray. | |
Swap | Swaps a range of elements from an SparseArray starting at the specified source index with another SparseArray starting at the specified target index. The length and the indexes are specified as 32-bit integers. |